// <copyright file="ReturnElement.cs" company="Codeplex project Eco.Contrib"> 
// The MIT License (MIT) 
// </copyright> 
// <author>Peter Buchmann</author> 

namespace Eco.Contrib
{
    using Eco.ObjectRepresentation;
    using Eco.UmlCodeAttributes;

    /// <summary>
    /// ReturnElement: Is returned by a ReturnInstruction
    /// </summary>
    public partial class ReturnElement
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="ReturnElement"/> class.
        /// </summary>
        /// <param name="serviceProvider">The service provider.</param>
        /// <param name="element">The element.</param>
        [UmlElement(Id = "9acd9b01-6a2a-4566-996c-34bea739759e")]
        public ReturnElement(IEcoServiceProvider serviceProvider, IElement element)
            : this(serviceProvider)
        {
            this.Element = element;
        }

        /// <summary>
        /// Gets the element.
        /// </summary>
        public IElement Element { get; private set; }
    }
}